/**
 * 
 */
package org.xlab.baseframework.test.webservice.client;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.test.context.ContextConfiguration;
import org.xlab.baseframework.exception.PermissionDeniedException;
import org.xlab.baseframework.exception.SystemWebServiceSessionNotFoundException;
import org.xlab.baseframework.test.base.BaseTester;
import org.xlab.baseframework.webservice.api.ISessionWebService;

/**
 * @author MaKuBEX
 * 
 */
@RunWith(BaseTester.class)
@ContextConfiguration("classpath:org/xlab/baseframework/conf/baseframework-WebModule-All.xml")
public class SessionWebServiceTestCase {

	@Autowired
	@Qualifier("bpf_sessionWebServiceClient")
	private ISessionWebService sessionWebService;

	@Test
	public void run() {
		System.out.println("Skip testing");
	}

//	@Test
	public void sayHello() {
		try {
			this.sessionWebService.ping("123", "456");
		} catch (SystemWebServiceSessionNotFoundException e) {
			e.printStackTrace();
		} catch (PermissionDeniedException e) {
			e.printStackTrace();
		}
	}
}
